package com.fellansoft.moviescollection.data;

import android.net.Uri;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Naty     ->pufi
 * Date: 5/12/12
 * Time: 6:32 PM
 * To change this template use File | Settings | File Templates.
 */

public class Movie{
    /*
     * Value for the movie ID
     */
    private Long id;
    /*
     * Value for the movie title
     */
    private String title;
    /*
     * Value for the release Date of the movie
     */
    private Date releaseDate;
    /*
     * Value for the description of the movie
     */
    private String description;
    /*
     * Value for the movie director-- unused
     */
    private String director;
    /*
     * List of booleans for the categories
     */
    private boolean[] categories;
    /*
     * If a movie is add to watch list
     */
    private Boolean watchList;
    /*
     * If a movie is added to favorites list
     */
    private Boolean favorite;
    /*
     * Value for the raiting of the movie
     */
    private Float ownRating;
    private Float imdbRating; // ? useless - cand facem treaba cu imdb deci vine la more_info
    /*
     * Cover Foto of the movie
     */
    private Uri coverPhoto;
    /*
     * List of photos for the movie
     */
    private List<Uri> photos;

    public Movie(Long id, String title, Date releaseDate, String description, boolean[] categories, Boolean watchList, Boolean favorite, Float ownRating, Float imdbRating, Uri coverPhoto, List<Uri> photos) {
        this.id = id;
        this.title = title;
        this.releaseDate = releaseDate;
        this.description = description;
        this.categories = categories;
        this.watchList = watchList;
        this.favorite = favorite;
        this.ownRating = ownRating;
        this.imdbRating = imdbRating;
        this.coverPhoto = coverPhoto;
        this.photos = photos;
    }

    public Movie() {
    }


    public void setCategories(boolean[] categories) {
        this.categories = categories;
    }

    public boolean[] getCategories() {
        return this.categories;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setPhotos(List<Uri> photos) {
        this.photos = photos;
    }

    public List<Uri> getPhotos() {
        return photos;
    }

    public void addPhoto(Uri photo) {
        this.photos.add(photo);
    }

    public Uri getCoverPhoto() {
        return coverPhoto;
    }

    public void setCoverPhoto(Uri coverPhoto) {
        this.coverPhoto = coverPhoto;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    public Float getImdbRating() {
        return imdbRating;
    }

    public void setImdbRating(Float imdbRating) {
        this.imdbRating = imdbRating;
    }

    public Float getOwnRating() {
        return ownRating;
    }

    public void setOwnRating(Float ownRating) {
        this.ownRating = ownRating;
    }

    public Boolean getFavorite() {
        return favorite;
    }

    public void setFavorite(Boolean favorite) {
        this.favorite = favorite;
    }

    public Boolean getWatchList() {
        return watchList;
    }

    public void setWatchList(Boolean watchList) {
        this.watchList = watchList;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}